#pragma execution_character_set("utf-8")
#ifndef LOGIN_H
#define LOGIN_H

#include <QMainWindow>
#include <QPoint>
#include <QToolTip>
#include <QTcpSocket>

#include "regist.h"
#include "maininterface.h"

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void keyPressEvent(QKeyEvent *event);

public slots:
    void mouseMoveEvent(QMouseEvent *event);
    void mousePressEvent(QMouseEvent *event);

    void connectedSlot();
    void readyReadSlot();
    void disconnectedSlot();

private slots:
    void on_loginButton_clicked();
    void on_closeButton_clicked();
    void on_registButton_clicked();

private:
    QPoint mouseOff;
    Ui::MainWindow *ui;
    regist * r;
    // mainInterface * m;
};
#endif // LOGIN_H
